<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="layer/jquery-1.8.3.js"></script>
    <script src="layer/layer.js"></script>
</head>
<body>
<input id="parentIframe" type="button" value="弹出页面"></input>
<p ></p>
</body>
<script>
    //弹出一个iframe层
    $('#parentIframe').on('click', function(){
        layer.open({
            type: 2,
            title: 'iframe父子操作',
            maxmin: true,
            shadeClose: true, //点击遮罩关闭层
            area : ['800px' , '520px'],
            content: 'test/iframe.html'
        });
    });
</script>
</html>